﻿using JuCheap.Core.Model;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace JuCheap.Core.IService.AppService
{
    /// <summary>
    /// 产品分类扩展服务
    /// </summary>
    public interface IProductCategoryExtService
    {
        /// <summary>
        /// 加载一级产品分类树状结构
        /// </summary>
        /// <returns></returns>
        Task<List<ProductCategoryDto>> GetTreeAsync(bool justLoadFirstLevel, string parentId);

        /// <summary>
        /// 加载产品分类表格树状结构
        /// </summary>
        Task<List<ProductCategoryDto>> GetTableTreeAsync(ProductCategoryFilter filter);
    }
}
